package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.CallnumsMapper;
import com.base.po.voip.Callnums;
import com.base.po.voip.CallnumsExample;
import com.base.service.CallNumService;
import org.springframework.stereotype.Service;

@Service("callNumService")
public class CallNumServiceImpl implements CallNumService {
	@Autowired
	private CallnumsMapper callnumsMapper;

	@Override
	public int countByExample(CallnumsExample example) {
		return callnumsMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(CallnumsExample example) {
		return callnumsMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return callnumsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Callnums record) {
		return callnumsMapper.insert(record);
	}

	@Override
	public int insertSelective(Callnums record) {
		return callnumsMapper.insert(record);
	}

	@Override
	public List<Callnums> selectByExample(CallnumsExample example) {
		return callnumsMapper.selectByExample(example);
	}

	@Override
	public Callnums selectByPrimaryKey(String id) {
		return callnumsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Callnums record, CallnumsExample example) {
		return callnumsMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Callnums record, CallnumsExample example) {
		return callnumsMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Callnums record) {
		return callnumsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Callnums record) {
		return callnumsMapper.updateByPrimaryKey(record);
	}

	@Override
	public Callnums selectByAgentKey(String id) {
		if (id == null) {
			return null;
		}
		return callnumsMapper.selectByAgentKey(id);
	}

}
